package com.lwj.dto.administration;

import com.lwj.constant.ConstantDefinition;
import org.springframework.data.annotation.Id;

import javax.validation.constraints.*;

public class UserDto {
    @NotBlank(message = "员工号不能为空")
    @Size(max = 11,message = "员工号不能超过11个字")
    private String empId;
    @NotBlank(message = "姓名不能为空")
    @Size(max = 255,message = "姓名不能超过255个字")
    private String name;

    private String password;


    private Integer enableState;

    /**
     * 性别
     */
    @NotBlank(message = "性别不能为空")
    @Pattern(regexp = "^[男女]$", message = "性别只能填男或女")
    private String gender;



    /**
     * 手机号码
     */
    @NotBlank(message = "手机号不能为空")
    @Pattern(message = "手机号格式不正确", regexp = ConstantDefinition.MOBILE_FORMAT)
    private String mobile;
    @NotBlank(message = "部门不能为空")
    private String departmentId;

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getEmpId() {
        return empId;
    }

    public void setEmpId(String empId) {
        this.empId = empId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getEnableState() {
        return enableState;
    }

    public void setEnableState(Integer enableState) {
        this.enableState = enableState;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }


    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}
